package cc.taofoo.IO;

import com.google.common.reflect.ClassPath;

import java.io.*;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.FileChannel;

public class IOTest {

    public static void main(String[] args) throws IOException {
        File f = new File("D:/youngstudy.py");
        FileInputStream fileInputStream = new FileInputStream(f);
        Reader reader = new InputStreamReader(fileInputStream);
        int ch;
        while ((ch=reader.read())!=-1){
            System.out.print((char)ch);
        }

    }

}


